package com.edu.marker.http;

public class EHttpException extends Exception {

	private static final long serialVersionUID = 34138947193281L;
	public static final int NO_ERROR = 0;
	public static final int ERROR_NETWORK = 1;
	public static final int ERROR_NETWORK_STATUS = 2;
	public static final int ERROR_PROTOCOL = 3;
	public static final int ERROR_INNER = 4;

	public int mErrorType = NO_ERROR;

	public EHttpException(int type, String detailMessage, Throwable throwable) {
		super(detailMessage, throwable);
		mErrorType = type;
	}

	public EHttpException(int type, String detailMessage) {
		super(detailMessage);
		mErrorType = type;
	}

	public int getErrorType() {
		return mErrorType;
	}
}